package org.jeecg.modules.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.taoc.entity.KuybTaoc;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 订单
 * @Author: jeecg-boot
 * @Date:   2021-09-09
 * @Version: V1.0
 */
@ApiModel(value="kuyb_order对象", description="订单")
@Data
@TableName("kuyb_order")
public class KuybOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15)
    @ApiModelProperty(value = "订单金额")
    private Integer dingdje;
	/**订单状态*/
	@Excel(name = "订单状态", width = 15, dicCode = "dingdzt")
    @Dict(dicCode = "dingdzt")
    @ApiModelProperty(value = "订单状态")
    private String dingdzt;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String dingdbh;

	@TableField(exist = false)
    List<KuybOrderChanp> kuybOrderChanpList;

    String openId;

    @TableField(exist = false)
    String productName;

    // 来源 0 小程序；1pc管理端
    @TableField(exist = false)
    Integer from;

    @TableField(exist = false)
    List<KuybOrderPolicy> kuybOrderPolicyList;

    @TableField(exist = false)
    List<KuybTaoc> kuybTaocList;

    // 审核方式
    @Dict(dicCode = "shenhfs")
    String shenhfs;
    // 审核结果
    @Dict(dicCode = "shenhjg")
    String shenhjg;

    // 待支付时使用
    String prepayId;
    String paySign;
    String timeStamp;
    String nonceStr;

    // 人工审核的时候调用
    private String userToken;
}
